package com.example.endusation.controller;

import com.example.endusation.dto.AITalkDTO;
import com.example.endusation.service.FunctionService;
import com.example.endusation.util.WrapperResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/core/web/function")

public class FunctionController {
    @Autowired
    private FunctionService functionService;
     @PostMapping("/picture")
    public WrapperResponse editPhoto(  AITalkDTO aiTalkDTO){
        return functionService.editPhoto(aiTalkDTO);
     }
     @PostMapping("/document")
    public WrapperResponse editDocument( AITalkDTO aiTalkDTO){
         return functionService.editDocument(aiTalkDTO);
     }
     @PostMapping("/video")
    public WrapperResponse editVideo( AITalkDTO aiTalkDTO){
         return functionService.editVideo(aiTalkDTO);
     }
}
